<?php
require_once __SYS__.'core/constant.php';
require_once __SYS__.'lib/Input.class.php';
require_once __SYS__.'core/template.php';
require_once __SYS__.'core/function.php';
require_once __SYS__.'core/core.php';

//加载自定义controller
if(is_readable(__ROOT__."core/controller.php")){
    require_once __ROOT__."core/controller.php";
}

//初始化自动加载规则
require_once __SYS__.'lib/Loader.class.php';
//require_once __SYS__.'lib/PDOMysql.clsss.php';
spl_autoload_register('Loader::loadModel');         //自动加载model
spl_autoload_register('Loader::loadLib');           //自动加载lib

